<?php
class App_Module_Media_ExceptionHandler_Http_Web extends Mozg_ExceptionHandler
{
    private $_metaTitle = '';
    
    protected function HandleNotFound(Exception $e)
    {
        $this->_metaTitle = '404 Not Found';

        Mozg::Response('http')->setHttpResponseCode (404);
        Mozg::Layout('media')->SetTemplate('Empty');
        $t = $this->GetTpl('Error');
        $t->requestURL = 'http://' ._HOST_NAME._ROOT_URL.Mozg::Request('http')->getRequestUri();
        Mozg::Response('http')->SetBody($t->NotFound());
        Mozg::SubAction()->Set('Meta Title', array($this, 'GetMetaTitle'));
    }

    public function GetMetaTitle()
    {
        return $this->_metaTitle;
    }
}